<?php

//多级箭头函数的原型
$many = 10;
$fn0=function($x)use($many){
    return function($y)use($x,$many){
        return  $x + $many*$y;
    };
};
 

$z = 10;
$fn1 = fn($x) =>fn($y) => $x + $z*$y;
//↑↑总之,把所有变量作用域统一传传送到最内层作用域,然后运行

var_dump($fn1(1)(2));


